package ModelLayer;

public class PartOrder {
	
	private int quantity;
	private Product product;
	private SalesOrder order;
	private double price;
	
	public PartOrder()
	{
		
	}
	
	public int getQuantity() {
		return quantity;
	}
	public void setQuantity(int quantity) {
		this.quantity = quantity;
	}
	public Product getProduct() {
		return product;
	}
	public void setProduct(Product product) {
		this.product = product;
	}
	
	public SalesOrder getOrder() {
		return order;
	}

	public void setOrder(SalesOrder order) {
		this.order = order;
	}

	public double getPrice() {
		return price;
	}
	public void setPrice(double price) {
	    this.price = price;
	}
	
	@Override
	public String toString()
	{
		return "antal: " + quantity +"pris: " + price +" porductid:  " + product.getId() + "orderid: " + order.getOrderid();	}

}
